home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 March / PC Plus Super CD (Issue 101) (March 1995).iso / tclite / include / sortcltn.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-27  |  1.3 KB  |  35 lines

  1. #ifndef    SORTEDCLTN_H
  2. #define    SORTEDCLTN_H
  3.  
  4. #include "ordcltn.h"
  5.  
  6. extern const Class class_SortedCltn;
  7.  
  8. class SortedCltn : public OrderedCltn {
  9. public:
  10.                     SortedCltn(unsigned size=CLTN_DEFAULT_CAPACITY);
  11.                     SortedCltn(const SortedCltn&);
  12.     bool            operator!=(const SortedCltn& a) const
  13.                     { return !(*this==a); }
  14.     void            operator=(const SortedCltn&);
  15.     bool            operator==(const SortedCltn&) const;
  16.     virtual SeqCltn operator&(/*const*/ SeqCltn& cltn) const;
  17.     virtual Object* add(const Object&);
  18.     virtual Object* addAfter(const Object& ob,
  19.                              const Object& newob);
  20.     virtual Object* addAllLast(const OrderedCltn&);
  21.     virtual Object* addBefore(const Object& ob,
  22.                               const Object& newob);
  23.     virtual Object* addLast(const Object& ob);
  24.     virtual void    atAllPut(const Object& ob);
  25.     virtual int     indexOfSubCollection(const SeqCltn& cltn,
  26.                                          int start=0) const;
  27.     virtual const Class*    isA() const;
  28.     virtual void    replaceFrom(int start, int stop,
  29.                                 const SeqCltn& replacement,
  30.                                 int startAt=0);
  31.     virtual void    sort();
  32. };
  33.  
  34. #endif
  35.